package com.API;

import java.util.Scanner;

public class WorkerDmeo {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请录入工人姓名");
        String s = sc.nextLine();
        System.out.println("请输入工人年龄");
        int i = sc.nextInt();
        Worker p =new Worker();

        p.setName(s);
        p.setYear(i);
        p.show();



    }
}
